package d1113.r211.num16;

public class Text {
    public static void main(String[] args) {
        Feeder feeder=new Feeder("张三");
        Cat cat = new Cat("美短");
        Food food=new Food("鱼罐头");
        feeder.say();
        feeder.feed(cat,food);
        Dog dog =new Dog("金毛");
        feeder.feed(dog,new Food("肉骨头"));//匿名对象
    }
}

